package com.integral.xr.module.platform.controller.admin.pointsrule.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import com.integral.xr.framework.excel.core.annotations.DictFormat;
import com.integral.xr.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 积分规则 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PointsRuleRespVO {

    @Schema(description = "id", example = "12312")
    @ExcelProperty("id")
    private String id;

    @Schema(description = "积分分类", example = "环境类")
    @ExcelProperty("积分分类")
    private String sort;

    @Schema(description = "积分名称", example = "环境治理")
    @ExcelProperty("积分名称")
    private String name;

    @Schema(description = "积分详情")
    @ExcelProperty("积分详情")
    private String details;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "最小积分")
    @ExcelProperty("最小积分")
    private Long pointsMin;

    @Schema(description = "最大积分")
    @ExcelProperty("最大积分")
    private Long pointsMax;

    @Schema(description = "积分类别", example = "1")
    @ExcelProperty(value = "积分类别", converter = DictConvert.class)
    @DictFormat("platform_points_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String pointsType;

    @Schema(description = "规则状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "规则状态", converter = DictConvert.class)
    @DictFormat("platform_points_state") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String state;

}